﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo03
{
    class Square:Shape
    {
        protected int sum1;
        protected int sum2;
        public override void GetArea()
        {
            base.GetArea();
            Console.WriteLine("请输入正方形的长：");
            a = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("请输入正方形的宽：");
            b = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("正方形的面积为：" + (sum1 * sum2));
            Console.WriteLine("正方形的颜色为：" + Color);
        }
    }
}
